<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <mate name="viewport" content="width=device-width,initial-scale=1.0"></mate>
    <title>博客管理</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">

</head>
<body>

    <!--导航-->
    <nav class="ui inverted attached segment m-padded-tb-small m-shadow-small"><!--inverted 把白色转换成黑色 attached 使nav标签附着在浏览器边缘-->
        <div class="ui container"><!--容器-->
            <div class="ui inverted stackable menu"><!--菜单栏 stackable:可堆叠适应于手机端-->
                <h2 class="ui teal header m-padded-t-small">管理后台</h2>
                <a href="#" class="m-item item m-mobile-hide"><i class="home icon"></i>首页</a><!-- m-mobile-hide：手机端隐藏-->
                <a href="#" class="m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="tags icon"></i>标签</a>
                <div class="right m-item m-mobile-hide menu">
                    <div class="ui dropdown item">
                        <div class="text">
                            <img class="ui avatar image" src="https://picsum.photos/id/1005/100/100">
                            许豪杰
                        </div>
                        <i class="dropdown icon"></i>
                        <div class="menu">
                            <a href="#" class="item">注销</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <a href="#" class="ui menu toggle button black icon m-right-top m-mobile-show"><!--导航列表按钮menu toggle:指示标记方便JavaScript获取该标签-->
            <i class="sidebar icon"></i>
        </a>
    </nav>

    <div class="ui attached pointing menu">
        <div class="ui container">
            <div class="right menu">
                <a href="#" class="item">发布</a>
                <a href="#" class="teal active item">列表</a>
            </div>
        </div>
    </div>

    <!--中间内容-->
    <div class="m-container-small m-padded-tb-big">
        <div class="ui container">
            <form action="#" method="post" class="ui segment form">
                <div class="inline fields"><!--fields复数-->
                    <div class="field">
                        <input type="text" name="title" placeholder="标题">
                    </div>
                    <div class="field">
                        <div class="ui selection dropdown">
                            <input type="hidden" name="type">
                            <i class="dropdown icon"></i>
                            <div class="default text">分类</div>
                            <div class="menu">
                                <div class="item" data-value="1">错误日志</div>
                                <div class="item" data-value="2">开发者手册</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui checkbox">
                            <input type="checkbox" name="recommend" id="recommend">
                            <label for="recommend">推荐</label>
                        </div>
                    </div>
                    <div class="field">
                        <button class="ui teal basic mini button">
                            <i class="search icon"></i>搜索
                        </button>
                    </div>
                </div>
            </form>

            <table class="ui celled table"><!--celled网格线-->
                <!--thead表头-->
                <thead>
                    <tr>
                        <th></th>
                        <th>标题</th>
                        <th>类型</th>
                        <th>推荐</th>
                        <th>更新时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <!--tbody表格内容-->
                <tbody>
                <tr>
                    <td>1</td>
                    <td>刻意联系清单</td>
                    <td>认知升级</td>
                    <td>是</td>
                    <td>2022-01-15 09:45</td>
                    <td>
                        <a href="#" class="ui mini teal basic button">编辑</a>
                        <a href="#" class="ui mini red basic button">删除</a>
                    </td>
                </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <th colspan="6">
                            <div class="ui pagination menu">
                                <a class="item">上一页</a>
                                <a class="item">下一页</a>
                            </div>
                            <a href="#" class="ui right floated mini teal basic button">新增</a>
                        </th>
                    </tr>
                </tfoot>
            </table>
        </div>
    </div>

    <!--底部footer-->
    <footer class="ui inverted vertical attached segment m-padded-tb-massive">
        <div class="ui center aligned container"><!--center aligned居中-->
            <div class="ui inverted divided stackable grid"><!--获取16份容器-->
                <div class="three wide column"><!--获取3份容器 微信二维码-->
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/images/wechat.jpg" class="ui rounded image" alt="" style="width:100px"><!--ui rounded image圆角图片-->
                        </div>
                    </div>
                </div>
                <div class="three wide column"><!--获取3份容器 最新博客-->
                    <div class="ui inverted link list">
                        <h4 class="ui inverted header m-opacity-mini">最新博客</h4>
                        <a href="#" class="item">用户故事（User Story）</a>
                        <a href="#" class="item">关于刻意练习的清单</a>
                        <a href="#" class="item">失败要趁早</a>
                    </div>
                </div>
                <div class="three wide column"><!--获取3份容器 联系我-->
                    <div class="ui inverted link list">
                        <h4 class="ui inverted header m-opacity-mini">联系我</h4>
                        <a href="#" class="item">Email：1812569943@qq.com</a>
                        <a href="#" class="item">QQ:1812569943</a>
                        <a href="#" class="item">Phone:18606753520</a>
                    </div>
                </div>
                <div class="seven wide column"><!--获取7份容器 Blog-->
                    <h4 class="ui inverted header m-opacity-mini">Blog</h4>
                    <p class="m-opacity-mini">这是我的个人博客、会分享关于编程写作、思考相关的任何内容希望可以给来这的人有所帮助...</p>
                </div>
            </div>
            <div class="ui inverted section divider"></div>
            <p class="m-text m-opacity-tiny m-text-thin m-text-space">Copyright © 2022 -2023 Xuhaojie Designed by Xuhaojie </p>
        </div>
    </footer>

<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script><!--通过CND的方式获取ui图片-->


<script>
    $('.menu.toggle').click(function (){
       $('.m-item').toggleClass('m-mobile-hide')
    });<!--类似开关样式单击切换-->

    $('.ui.dropdown').dropdown({
        on:'hover'
    });
</script>
</body>
</html>
